package com.example.okhttputils.mvp.model.api;

import com.example.okhttputils.mvp.base.BaseModel;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * @author:created by njb
 * 时间:2019/3/8 15 04
 * 描述:
 */
public interface ApiServer {
    @GET("/article/list/1/json")
    Observable<BaseModel> getArtList(@QueryMap Map<String, String> map);

    /**
     * 用户登录
     * @param map
     * @return
     */
    @POST("v1/login/login")
    Observable<BaseModel> getLogin(@QueryMap Map<String,String> map);

    /**
     * 创业圈
     * @param map
     * @return
     */
    @POST("v1/circle/friend-circle")
    Observable<BaseModel> getCircle(@QueryMap Map<String,String> map);

    /**
     * 我的创业圈背景图
     * @param map
     * @return
     */
    @POST("v1/circle/my-background")
    Observable<BaseModel> getMyBackGround(@QueryMap Map<String,String> map);

    /**
     * 创业圈详情
     * @param map
     * @return
     */
    @POST("v1/circle/circle")
    Observable<BaseModel> getCircleDetail(@QueryMap Map<String,String> map);

    /**
     * 发布创业圈
     * @param map
     * @return
     */
    @POST("v1/circle/add-circle")
    Observable<BaseModel> getAddCircle(@QueryMap Map<String,String> map);

    /**
     * 评论
     * @param map
     * @return
     */
    @POST("v1/circle/comment-circle")
    Observable<BaseModel> getCommentCircle(@QueryMap Map<String,String> map);

    /**
     * 删除创业圈
     * @param map
     * @return
     */
    @POST("v1/circle/del-circle")
    Observable<BaseModel> getDelCircle(@QueryMap Map<String,String> map);

    /**
     * 删除评论
     * @param map
     * @return
     */
    @POST("v1/circle/comment-del")
    Observable<BaseModel> getDelComment(@QueryMap Map<String,String> map);

    /**
     * 点赞/取消点赞
     * @param map
     * @return
     */
    @POST("v1/circle/like-circle")
    Observable<BaseModel> getLikeCircle(@QueryMap Map<String,String> map);

    /**
     * 更改创业圈背景图片
     * @param map
     * @return
     */
    @POST("v1/circle/background-circle")
    Observable<BaseModel> getBackGroundCircle(@QueryMap Map<String,String> map);

    /**
     * 提醒
     * @param map
     * @return
     */
    @POST("v1/circle/remind-circle")
    Observable<BaseModel> getRemindCircle(@QueryMap Map<String,String> map);

    /**
     * 收藏/取消收藏
     * @param map
     * @return
     */
    @POST("v1/circle/collect-circle")
    Observable<BaseModel> getCollectCircle(@QueryMap Map<String,String> map);

    /**
     * 收藏列表
     * @param map
     * @return
     */
    @POST("v1/circle/my-collect")
    Observable<BaseModel> getMyCollect(@QueryMap Map<String,String> map);


}
